<template>
  <el-container>
    <el-header class="header" height="100vh">
      <button class="animated-button" style="position: absolute;top:60%;left: 30%;  padding:20px 40px;font-size: 70px;">
        <svg viewBox="0 0 24 24" class="arr-2" xmlns="http://www.w3.org/2000/svg">
          <path
            d="M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z">
          </path>
        </svg>
        <a class="text" href="/statistics" style="padding: 10px 20px;font-size: large;">进入使用</a>
        <span class="circle"></span>
        <svg viewBox="0 0 24 24" class="arr-1" xmlns="http://www.w3.org/2000/svg">
          <path
            d="M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z">
          </path>
        </svg>
      </button>

      <p style="display: block;
      position: absolute;
      top: 20%;
      left: 25%;
      font-size: 150px;
      font-family: fantasy;
      text-shadow: 2px 2px 2px bisque;
      ">My Day</p>

      <!-- <div class="spinner" style="position:absolute; top: 5%;left: 20%;">
        <div class="spinner1"></div>
      </div> -->

    </el-header>


    <div class="card">
      <p class="card-title">待办事务管理</p>
      <p class="small-desc">
        添加、修改、删除待办事务，管理你的日程。
      </p>
      <div class="go-corner">
        <div class="go-arrow">→</div>
      </div>
    </div>

    <div class="card card2">
      <p class="card-title">统计分析</p>
      <p class="small-desc">
        计并分析待办事务完成情况，提升效率。
      </p>
      <div class="go-corner">
        <div class="go-arrow">→</div>
      </div>
    </div>

    <div class="card card3">
      <p class="card-title">个性化设置</p>
      <p class="small-desc">
        选择头像、壁纸和按键样式，定制你的使用体验。
      </p>
      <div class="go-corner">
        <div class="go-arrow">→</div>
      </div>
    </div>
  </el-container>

</template>

<script setup>
</script>

<style>
.header {
  width: 100%;
  height: 100%;
  background: lightblue;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #ffffff 10%, transparent 20%),
    radial-gradient(circle, transparent 10%, #83e1ce 20%);
  background-size: 30px 30px;
  /* Adjust the size of the pattern */
  animation: moveBackground 8s linear infinite;
  /* Adjust the animation duration and timing function */
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(20%, 20%);
  }
}

.animated-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: rgb(128, 88, 131);
  box-shadow: 0 0 0 2px rgb(230, 109, 190);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: rgb(47, 41, 80);
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: rgb(141, 160, 186);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #212121;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #212121;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px rgb(67, 86, 206);
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

/* .spinner {
  background-image: linear-gradient(rgb(186, 66, 255) 35%, rgb(0, 225, 255));
  width: 100px;
  height: 100px;
  animation: spinning82341 1.7s linear infinite;
  text-align: center;
  border-radius: 50px;
  filter: blur(1px);
  box-shadow: 0px -5px 20px 0px rgb(186, 66, 255), 0px 5px 20px 0px rgb(0, 225, 255);
}

.spinner1 {
  background-color: rgb(36, 36, 36);
  width: 100px;
  height: 100px;
  border-radius: 50px;
  filter: blur(10px);
} */

@keyframes spinning82341 {
  to {
    transform: rotate(360deg);
  }
}

.card-title {
  color: #262626;
  font-size: 1.5em;
  line-height: normal;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.small-desc {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5em;
  color: #452c2c;
}

.small-desc {
  font-size: 1em;
}

.go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 2em;
  height: 2em;
  overflow: hidden;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #ffffff, #6dc3d8);
  border-radius: 0 4px 0 32px;
}

.go-arrow {
  margin-top: -4px;
  margin-right: -4px;
  color: white;
  font-family: courier, sans;
}

.card {
  display: block;
  position: absolute;
  max-width: 400px;
  width: 400px;
  max-height: 320px;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 2em 1.2em;
  top: 20%;
  left: 60%;
  margin: 12px;
  text-decoration: none;
  z-index: 0;
  box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: whitesmoke;
  font-family: Arial, Helvetica, sans-serif;
}

.card:before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: linear-gradient(135deg, #364a60, #384c6c);
  height: 32px;
  width: 32px;
  border-radius: 32px;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.35s ease-out;
}

.card:hover:before {
  transform: scale(28);
}

.card:hover .small-desc {
  transition: all 0.5s ease-out;
  color: rgba(255, 255, 255, 0.8);
}

.card:hover .card-title {
  transition: all 0.5s ease-out;
  color: #ffffff;
}

.card2 {
  top: 40%;
  left: 60%;
}

.card3 {
  top: 60%;
  left: 60%;
}
</style>